Skip to content

Conversation

GarmashAlex
Copy link

Replaced the original binary generation loop in bench/byte_reversal.exs to use rem(i, 256) for each byte value. This ensures that all generated bytes are within the valid range (0..255), preventing runtime errors that occur when trying to create a byte with a value greater than 255. The change allows the benchmark to run correctly for all intended input sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant